package com.example.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Order {
    private Integer order_id;
    private Integer pet_id;
    private Integer family_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date start_date;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date end_date;
    private String service_type;
    private String special_requirement;
    private java.math.BigDecimal price;
    private String status;
    // 新增用户相关字段
    private Integer requester_id;
    private Integer provider_id;

    @Override
    public String toString() {
        return "Order{" +
                "order_id=" + order_id +
                ", pet_id=" + pet_id +
                ", family_id=" + family_id +
                ", start_date=" + start_date +
                ", end_date=" + end_date +
                ", service_type='" + service_type + '\'' +
                ", special_requirement='" + special_requirement + '\'' +
                ", price=" + price +
                ", status='" + status + '\'' +
                ", requester_id=" + requester_id +
                ", provider_id=" + provider_id +
                '}';
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    public Integer getPet_id() {
        return pet_id;
    }

    public void setPet_id(Integer pet_id) {
        this.pet_id = pet_id;
    }

    public Integer getFamily_id() {
        return family_id;
    }

    public void setFamily_id(Integer family_id) {
        this.family_id = family_id;
    }

    public Date getStart_date() {
        return start_date;
    }

    public void setStart_date(Date start_date) {
        this.start_date = start_date;
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public String getService_type() {
        return service_type;
    }

    public void setService_type(String service_type) {
        this.service_type = service_type;
    }

    public String getSpecial_requirement() {
        return special_requirement;
    }

    public void setSpecial_requirement(String special_requirement) {
        this.special_requirement = special_requirement;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getRequester_id() {
        return requester_id;
    }

    public void setRequester_id(Integer requester_id) {
        this.requester_id = requester_id;
    }

    public Integer getProvider_id() {
        return provider_id;
    }

    public void setProvider_id(Integer provider_id) {
        this.provider_id = provider_id;
    }
}